.class Lcom/instagram/android/a/q;
.super Ljava/lang/Object;
.source "NearbyVenuesAdapter.java"


# direct methods
.method public static a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 493
    sget v0, Lcom/facebook/ax;->row_venue:I

    const/4 v1, 0x0

    invoke-virtual {p0, v0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 495
    new-instance v2, Lcom/instagram/android/a/r;

    invoke-direct {v2}, Lcom/instagram/android/a/r;-><init>()V

    .line 496
    invoke-virtual {v1, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 498
    sget v0, Lcom/facebook/aw;->background_container:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v2, Lcom/instagram/android/a/r;->a:Landroid/view/View;

    .line 499
    sget v0, Lcom/facebook/aw;->row_venue_title:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/a/r;->b:Landroid/widget/TextView;

    .line 500
    sget v0, Lcom/facebook/aw;->row_venue_subtitle:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/a/r;->c:Landroid/widget/TextView;

    .line 502
    return-object v1
.end method

.method public static a(Lcom/instagram/android/a/r;Lcom/instagram/venue/model/Venue;I)V
    .locals 3
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v2, 0x0

    .line 506
    iget-object v1, p0, Lcom/instagram/android/a/r;->a:Landroid/view/View;

    if-nez p2, :cond_0

    sget v0, Lcom/facebook/av;->input_fullwidth_alt:I

    :goto_0
    invoke-virtual {v1, v0}, Landroid/view/View;->setBackgroundResource(I)V

    .line 510
    iget-object v0, p0, Lcom/instagram/android/a/r;->a:Landroid/view/View;

    invoke-static {v0, v2}, Lcom/instagram/n/k;->b(Landroid/view/View;I)V

    .line 511
    iget-object v0, p0, Lcom/instagram/android/a/r;->a:Landroid/view/View;

    invoke-static {v0, v2}, Lcom/instagram/n/k;->a(Landroid/view/View;I)V

    .line 513
    iget-object v0, p0, Lcom/instagram/android/a/r;->b:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/instagram/venue/model/Venue;->b()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 515
    invoke-virtual {p1}, Lcom/instagram/venue/model/Venue;->c()Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_1

    invoke-virtual {p1}, Lcom/instagram/venue/model/Venue;->h()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 516
    iget-object v0, p0, Lcom/instagram/android/a/r;->c:Landroid/widget/TextView;

    sget v1, Lcom/facebook/ba;->custom_location:I

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 525
    :goto_1
    return-void

    .line 506
    :cond_0
    sget v0, Lcom/facebook/av;->input_fullwidth:I

    goto :goto_0

    .line 518
    :cond_1
    invoke-virtual {p1}, Lcom/instagram/venue/model/Venue;->c()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/i;->a(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_2

    .line 519
    iget-object v0, p0, Lcom/instagram/android/a/r;->c:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/instagram/venue/model/Venue;->c()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 520
    iget-object v0, p0, Lcom/instagram/android/a/r;->c:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_1

    .line 522
    :cond_2
    iget-object v0, p0, Lcom/instagram/android/a/r;->c:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_1
.end method
